/**
 * 小程序配置文件, 配置文件请勿更改！
 */

let hosts = {
  test: 'test.everonet.com',
  production: 'api.everonet.com',
  dev: 'sg-dev.everonet.com',
  staging: 'staging.everonet.com'
}
let host = hosts.production
function getPaymentUrl(type, id) {
  // acq 收单接入  mer 商户接入
  if (type === 'acq') {
    return `https://${host}/payment/acq/${id}/evo.qr.miniProgramPay/v0`
  } else if (type === 'mer') {
    return `https://${host}/payment/mer/${id}/evo.qr.miniProgramPay/v0`
  } else {
    console.error('error pay type from config')
  }
}

module.exports = { getPaymentUrl }
